#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

void TestHeap()
{
	Heap hp;
	int a[] = { 32,453,12,76,5,7,231 };
	HeapCreate(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		HeapPush(&hp, a[i]);
	}
	HeapPrintf(&hp);
	HeapPop(&hp);
	HeapPrintf(&hp);
	HPDataType top = HeapTop(&hp);
	printf("%d\n", top);
	printf("%d\n", HeapSize(&hp));
	HeapDestory(&hp);
}

int main()
{
	TestHeap();
	return 0;
}